package com.platform.service.impl;

import com.platform.dao.ApiEmceeAdDao;
import com.platform.entity.ApiEmceeAdEntity;
import com.platform.service.ApiEmceeAdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author ocean
 * @email 1141736487@qq.com
 * @date 2019-03-26 11:26:42
 */
@Service
public class ApiEmceeAdServiceImpl implements ApiEmceeAdService {
    @Autowired
    private ApiEmceeAdDao adDao;

    @Override
    public ApiEmceeAdEntity queryObject(Integer id) {
        return adDao.queryObject(id);
    }

    @Override
    public List<ApiEmceeAdEntity> queryList(Map<String, Object> map) {
        return adDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return adDao.queryTotal(map);
    }

    @Override
    public int save(ApiEmceeAdEntity ad) {
        return adDao.save(ad);
    }

    @Override
    public int update(ApiEmceeAdEntity ad) {
        return adDao.update(ad);
    }

    @Override
    public int delete(Integer id) {
        return adDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return adDao.deleteBatch(ids);
    }
}
